@hoverColor:#ccc;

// 禁用滚动条
html,body{
    height: 100%;
    overflow: hidden;
}
#wrap{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.clearFix::before,.clearFix::after{
    content: "";
    display: table;
    clear: both;
}
//设置变量存储设计图的宽度
@ps_w:750;

// 设置变量保存倍数
@num:40;

//设置vw适配
html{
	// 设置字体大小
	font-size: 100vw/@ps_w*@num;
}

img{
    display: block;
}
.r(){
    float: right;
}
.l(){
    float: left;
}
.clearFix(){
    *zoom: 1;
    &::after{
        content: "\200B";
        height: 0;
        display: block;
        clear: both;
    }
}

// 主体
#wrap{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    #main{
        width: 400rem/@num;
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0 auto;
        transform: translate(-50%,-50%);  
        // 搜索框
        .searchBox{
            width: 300rem/@num;
            margin: 0 auto 30rem/@num;
            position: relative;
            .listBox{
                width: 100%;
                overflow: hidden;
                padding-left: 6rem/@num;
                .list{
                    font-size: 8rem/@num;
                    width: 999rem/@num;
                    color: #ddd;
                    font-weight: 300;
                    margin-bottom: 10rem/@num;
                    .clearFix();
                    li{
                        .l();
                        margin-right: 30rem/@num;
                        cursor: pointer;
                    }
                }
            }
            
            label{
                width: 100%;
                font-size: 0;
                line-height: 20rem/@num;
                display: flex;
                justify-content: flex-start;
                border-radius: 2rem/@num;
                overflow: hidden;
                button{
                    width: 10%;
                    line-height: 26rem/@num;
                    position: relative;
                    outline: none;
                    border: none;
                    box-sizing: border-box;
                    font-size: 4rem/@num;
                    display: flex;
                    justify-content: space-evenly;
                    align-items: center;
                    .arrows{
                        font-size: 10rem/@num;
                        position: absolute;
                        top: 50%;
                        right: 0;
                        transform: translateY(-50%);
                    }

                    .icon{
                        width: 10rem/@num;
                        height: 10rem/@num;
                        vertical-align: -0.15em;
                        fill: currentColor;
                        overflow: hidden;
                        margin-right: 4rem/@num;
                    }
                    cursor: pointer;
                }
                input{
                    font-size: 4rem/@num;
                    line-height: 26rem/@num;
                    outline: none;
                    border: none;
                    box-sizing: border-box;
                    padding:0 1rem/@num;
                    flex: 1;
                }
            }

            // 搜索引擎列表
            .searchList{
                display: none;
                width: 100%;
                height: 50rem/@num;
                background: #fff;
                position: absolute;
                top: 110%;
                left: 0;
                z-index: 9;
                border-radius: 2rem/@num;
                li{
                    width: 16.66667%;;
                    height: 50rem/@num;
                    display: flex;
                    flex-direction:column;
                    justify-content: space-evenly;
                    align-items: center;
                    font-weight: 300;
                    border-right: 1px solid #eee;
                    .l();
                    .icon{
                        width: 30%;
                        height: 30%;
                    }
                }
            }
        }

        // 常用网站列表
        .shortcutList{
            width: 100%;
            .listBox{
                &~.listBox{
                    margin-top: 20rem/@num;
                }
                .list{
                    width: 100%;
                    margin: 0 auto;
                    // background-color: #bfa;
                    display: flex;
                    flex-flow: wrap row;
                    text-align: center;
                    min-width: 500px;
                    a{
                        position: relative;
                        width: 20%;
                        color: #fff;
                        margin-bottom: 25px;
                        opacity: 0.5;
                        .tagImg{
                            margin: 0 auto;
                            width: 100px;
                            height: 100px;
                            line-height: 100px;
                            border-radius: 50%;
                            background-color: black;
                            font-size: 25px;
                            background-size: 100% 100%;
                            overflow: hidden;
                            white-space: nowrap;
                        }
                        .tagTitle{
                            height: 30px;
                            line-height: 30px;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                        }
                    }
                }
            }
            
        }
    }

    #backgroundImg{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        img{
            width: 100%;
            height: 100%;
        }
    }




    .mask{
        background: #000;
        width: 100%;
        height: 100%;
        opacity: .5;
        position: absolute;
        top: 0;
        left: 0;
    }
        

    .function{
        // 右侧功能区大框架设置  by 小周
        // width: 420px;
        width: 0;
        height: 100%;
        background-color: #fff;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 99999;
        // 等元元的右上角图标设好了再打开~
        // display: none;

        // 右侧功能区上部  标题栏设置  by 小周
        .options{
            width: 100%;
            height: 36rem/@num;
            line-height: 36rem/@num;
            font-size: 22px;
            &>div{
                text-align: center;
                float: left;
                width: 110px;
                &:hover{
                    color: #3ac459;
                    cursor: pointer;
                }
            }
            &>div.selected{
                color: #3ac459;
            }
            .close{
                float: right;
            }
        }
        // 右侧功能区下部  ”添加“设置区域  by 小马+小周+小万
        .option-details{
            background-color: #e8e8e9;
            width: 100%;
            height: 500rem/@num;

            // 添加  功能区设置  by 小马+小周
            .add{
                // 默认block
                display: block;
                width: 100%;
                height: 500rem/@num;
                // 默认&自定义 标题设置  by 小周
                .titles{
                    width: 100%;
                    height: 45px;
                    text-align: center;
                    line-height: 45px;
                    &>h3{
                        float: left;
                        width: 50%;
                        cursor: pointer;
                    }
                    &>h3.active{
                        background-color: #cfcfcf;
                        color: #a8a8a8;
                    }
                }
                // 默认&自定义各自对应的内容区 by 小马+小周
                .content{
                    padding: 20px;

                    // 添加-默认  by 小马 
                    #default{
                        .show{
                            display: block;
                        }
                        display: none;
                        .df-inner{
                           
                            width: 380px;
                            // height: 800px;
                            box-sizing: border-box;
                            background-color: rgb(236, 237, 238);
                            input{
                                margin-bottom: 20px;
                                width: 380px;
                                height: 45px;
                                outline: none;
                                text-indent: 10px;
                                font-size: 16px;
                               
                            }
                            
                            .aside-1{
                                border-left: 3px solid yellowgreen;
                                float: left;
                                width:117px ;
                                height: 35px;
                                line-height:35px;
                                text-indent: 7px;
                                font-size: 15px;
                            }
                            .aside-1:hover{
                                background-color: #fff;
                            }
                            .box{
                                width: 260px;
                               
                                float: left;
                                .boxone,.tm,.jd,.zh{
                                    width: 260px;
                                    height: 140px;
                                    background-color: #fff;
                                    height: 150px;
                                    margin-bottom: 10px;
                                    .xtb{
                                        float: left;
                                        margin-top: 25px;
                                        margin-left: 25px;
                                        img{
                                           border-radius: 50%;
                                           width: 60px;
                                           height: 60px;
                                        }
                                    }
                                    .right{
                                        h4{
                                            margin-top: 25px;
                                        }
                                        p{
                                            color: rgba(0, 0, 0, .3);
                                            margin-bottom: 38px;
                                            margin-top: 5px;
                                        }
                                        width: 155px;
                                        height: 140px;
                                        // background-color: red;
                                        padding-left:20px ;
                                        float: left;
                                        .open,.add{
                                            width: 58px;
                                            height: 33px;
                                            border: 1px solid gray;
                                            float: left;
                                            line-height: 33px;
                                            text-align: center;
                                            border-radius: 3px;
                                        } 
                                        .add{
                                            border: 1px solid yellowgreen;
                                            color: yellowgreen;
                                        }
                                        .open{
                                            margin-right:25px ;
                                        }
                                        }
                                }
                                
                            }

                        }

                    }


                    // 添加-自定义  by 小周
                    #customize{
                        display: none;
                        .inner{
                            width: 380px;
                            height: 500px;
                            box-sizing: border-box;
                            background-color: #fff;
                            border-radius: 5px;
                            margin-bottom: 40px;
                            padding: 40px 20px 0;
                            &>div{
                                float: left;
                            }
                            .left{
                                margin-right: 20px;
                                .circle{
                                    width: 98px;
                                    height: 98px;
                                    background-color: gold;
                                    border-radius: 50%;
                                }
                            }
                            .right{
                                .web-address,
                                .web-name,
                                .web-desc{
                                    p{
                                        font-size: 12px;
                                        color: #000;
                                        text-align: left;
                                        margin-bottom: 3px;
                                    }
                                    input{
                                        width: 222px;
                                        outline: none;
                                        border: none;
                                        border-bottom: 1px solid #a7a7a7;
                                        padding: 10px 0;
                                        margin-bottom: 20px;
                                    }
                                }
                                .font-set,
                                .icon-color{
                                    margin-bottom: 20px;
                                    p{
                                        text-align: left;
                                        font-size: 12px;
                                        color: #000;
                                        margin-bottom: 10px;
                                    }
                                }
                                .font-set{
                                    .bar{
                                        position: relative;
                                        background-color: #e8e8e9;
                                        .full-bar{
                                            width: 50px;
                                            height: 5px;
                                            background-color: #3ac459;
                                            border-radius: 8px;
                                        }
                                        .little-btn{
                                            width: 15px;
                                            height: 15px;
                                            background-color: #fff;
                                            box-shadow: 0 0 6px rgba(0, 0, 0, .3);
                                            border-radius: 50%;
                                            position: absolute;
                                            top: -6px;
                                            left: 50px;
                                            cursor: pointer;
                                        }
                                    }
                                }
                                .icon-color{
                                   .colors{
                                       &>div{
                                           width: 13px;
                                           height: 13px;
                                           box-sizing: border-box;
                                           border-radius: 50%;
                                           float: left;
                                           margin-right: 10px;
                                            cursor: pointer;
                                       }
                                       &>div.choosed{
                                           border: 2px solid rgba(0, 0, 0, .05);
                                           box-shadow: 0 0 5px rgba(0, 0, 0, .5);
                                       }
                                       .color1{
                                           background-color: red;
                                       }
                                       .color2{
                                           background-color: orange;
                                       }
                                       .color3{
                                           background-color: gold;
                                       }
                                       .color4{
                                           background-color: green;
                                       }
                                       .color5{
                                           background-color: skyblue;
                                       }
                                       .color6{
                                           background-color: blue;
                                       }
                                       .color7{
                                           background-color: purple;
                                       }
                                   }
                                }
                                button{
                                    width: 222px;
                                    height: 35px;
                                    box-sizing: border-box;
                                    background-color: #fff;
                                    border: 1px solid #3ac459;
                                    border-radius: 8px;
                                    text-align: center;
                                    margin-top: 40px;
                                    color: #3ac459;
                                    &:hover{
                                        background-color: #e1f9eb;
                                        cursor: pointer;
                                    }
                                }
                            }
                        }
                        p{
                            text-align: center;
                            font-size: 14px;
                            color: #a8a8a8;
                        }
                    }
                }
            }

            //设置（万）
            .setUp{
                // 隐藏请改none
                display: none;
                background-color: #EDEDED;
                width: 420px;
                z-index: 10;
                overflow: auto;
                padding: 20px;
                box-sizing: border-box;
                .warpBox{
                    background-color: white;
                    border-radius: 3px;
                    padding: 20px;
                    box-sizing: border-box;
                    p{
                        margin: 20px 0;
                    }
                    ul{
                        li{
                            float: left;
                            width: 98px;
                            text-align: center;
                            color: #DFDFDF;
                            &:nth-child(2){
                                margin: 0 14px;
                            }
                            &:first-child img{
                                outline: solid 2px #00CA67;
                            }
                            img{
                                vertical-align: top;
                                margin-bottom: 5px;
                                border-radius: 2px;
                                cursor: pointer;
                                
                            }
                        }
                    }
                    .ds{
                        height: 50px;
                        >*{
                            float: right;
                        }
                        
                        .colText{
                            line-height: 50px;
                            color: #00CA67;
                            font-size: 14px;
                            font-weight: bold;
                            width: 40px;
                            text-align: center;
                        }
                        .drag{
                            position: relative;
                            margin: 22px 20px;
                            height: 6px;
                            width: 200px;
                            border-radius: 3px;
                            background-color: #EDEDED;
                            .boll,.select{
                                position: absolute;
                            }
                            .boll{
                                background-color: #fff;
                                width: 15px;
                                height: 15px;
                                top: -5px;
                                left: 50%;
                                z-index: 3;
                                border-radius: 50%;
                                cursor: pointer;
                                box-shadow: 0 0 10px rgba(0,0,0,0.4);
                                
                            }
                            .select{
                                height: 6px;
                                background-color: #00CA67;
                                width: 55%;
                                z-index: 2px;
                                border-radius: 3px;
                              
                            }
        
                        }
                        &:nth-of-type(3) .drag .boll{
                            left: 100%;
                        }
                        &:nth-of-type(3) .drag .select{
                            width: 100%;
                        }
                    }
                    
                }
            }
        }  
    }

}


